package com.dmgis.hndz.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dmgis.hndz.pojo.Ybab01a;
import com.dmgis.hndz.service.Ybab01aService;
import com.dmgis.hndz.mapper.Ybab01aMapper;
import org.springframework.stereotype.Service;

/**
 * @author PC
 * @description 针对表【ybab01a(地质因子配比表)】的数据库操作Service实现
 * @createDate 2024-02-06 09:58:05
 */
@Service
public class Ybab01aServiceImpl extends ServiceImpl<Ybab01aMapper, Ybab01a>
        implements Ybab01aService {

    @Override
    public int getMaxId() {
        return baseMapper.getMaxId();
    }

    /**
     * 查询是否已有该记录
     * @param id
     * @return
     */
    @Override
    public int getDataById(String id) {
        return baseMapper.getDataById(id);
    }

    /**
     * 根据id查询行政编码
     *
     * @param id
     * @return
     */
    @Override
    public String getCodeById(String id) {
        return baseMapper.getCodeById(id);
    }
}




